import {isWeiXin, px2Rem} from '@localModules/ZhiXinLib/utils/index'
import vconsole from 'vconsole'
if (process.env.NODE_ENV === 'development' && isWeiXin()) {
  new vconsole()
}
console.log(px2Rem(56));

import Vue from 'vue'
import App from './App.vue'

import install from '@/directive/index.js'
Vue.use(install)
// router
import router from './router/index.js'

// elementUI
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
Vue.use(ElementUI, { size: 'small', zIndex: 3000 });

// vant
import Vant from 'vant';
import 'vant/lib/index.css';
Vue.use(Vant);

// vxeTable
import '@localModules/ZhiXinLib/vxeTable-components/edit-dynamic-table/install'

// 表单额外注册组件
import '@/views/dynamic-form/GlobalOtherCom.js'
import '@/style/global.scss'
import store from "@/store";
new Vue({
  store,
  router,
  render: h => h(App)
}).$mount('#app')
